//
//  ImageChooser.m
//  TarPhone
//
//  Created by Christopher Anderson on 19/03/2009.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import "ImageChooser.h"


@implementation ImageChooser

#define SOURCETYPE UIImagePickerControllerSourceTypePhotoLibrary 
#define DOCSFOLDER [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"] 

- (id) initWithDelegate:(NSObject<UINavigationControllerDelegate, UIImagePickerControllerDelegate>*)delegate  { 
	if (self = [super init]) self.title = @"Choose picture"; 
	if ([UIImagePickerController isSourceTypeAvailable:SOURCETYPE]) 
		self.sourceType = SOURCETYPE; 
	self.delegate = delegate;
	return self; 
} 

@end
